/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: rei
 * Date: 2025-11-22
 * Time: 16:22
 */
public class Demo {
    public static void main(String[] args) {
        Demo d = new Demo();
        d.test();
    }

    public void test() {
        System.out.println("外部类 Demo 的 this: " + this);

        Runnable r = new Runnable() {
            @Override
            public void run() {
                System.out.println("匿名内部类的 this: " + this);
            }
        };

        r.run();
    }
}

